<template>
  <div class="shipin-source-popup">
    <div class="popup-header">
      <h3>{{ featureData.name || '地图要素' }}</h3>
      <span class="close-btn" @click="closePopup">×</span>
    </div>
    <div class="popup-body">
      <video class="black-video-placeholder" controls="false"></video>
    </div>
  </div>
</template>

<script>
export default {
  name: 'yujingPopup',
  data: function () {
    return {

    };
  },
  props: {
    featureData: {
      type: Object,
      default: () => ({})
    }
  },

  methods: {
    closePopup() {
      this.$emit('close');
    }
  }
};
</script>

<style scoped>
.shipin-source-popup {

  width: 500px;
}

.popup-header {
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.popup-header h3 {
  margin: 0;
  font-size: 16px;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 30px);
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: #909399;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #409eff;
}

.popup-body {
  padding: 16px;
}

.black-video-placeholder {
  background-color: #000;
  width: 100%;
  height: 300px;
  border-radius: 4px;
  object-fit: cover;
}
</style>